<template>
	<view class="scan-container">
		<!-- 扫码区域 -->
		<view class="scan-area" @click="goToVerificationPage">
			<!-- 二维码扫描图标 -->
			<view class="scan-icon-container">
				<image class="scan-icon" src="/static/scancode-img/扫码 (2).png" mode="aspectFit"></image>
			</view>
			
			<!-- 扫描提示文字 -->
			<view class="scan-tips">
				<text class="tips-text">请将二维码放入框内</text>
				<text class="tips-subtitle">保持手机稳定，确保二维码清晰可见</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			// 跳转到核销页面
			goToVerificationPage() {
				uni.navigateTo({
					url: '/pages/wjq/enterverificationcode/enterverificationcode?from=scan'
				})
			}
		}
	}
</script>

<style scoped>
	.scan-container {
		width: 100%;
		margin-top: 50rpx;
		/* height: 80vh; */
		background-color: #f5f5f5;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
	/* 扫码区域 */
	.scan-area {
		width: 600rpx;
		background-color: white;
		border-radius: 20rpx;
		padding: 80rpx 40rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
		cursor: pointer;
	}
	
	/* 扫描图标容器 */
	.scan-icon-container {
		width: 200rpx;
		height: 200rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 40rpx;
	}
	
	.scan-icon {
		width: 100%;
		height: 100%;
	}
	
	/* 扫描提示 */
	.scan-tips {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.tips-text {
		font-size: 32rpx;
		color: #333;
		margin-bottom: 20rpx;
		text-align: center;
	}
	
	.tips-subtitle {
		font-size: 28rpx;
		color: #999;
		text-align: center;
		line-height: 40rpx;
	}
</style>